package com.itcast.contrller;

import com.itcast.pojo.enterprise;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/books")
public class Contrller {
     @Autowired
    enterprise enterprises;

    @GetMapping("/{id}")
    public String enterprise(@PathVariable Integer id) {
        System.out.println(enterprises);
        return "ss";
    }



}
